package com.woniuxy.dao;

import com.woniuxy.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: 马宇航
 * @Do: dao层
 * @DateTime: 22/06/21/0021 下午 3:01
 * @Component: 成都蜗牛学苑
 **/
public interface ProductDao extends JpaRepository<Product,Integer> {
    //相当于 from myh-product where stock between ?1 and ?2
    List<Product> findAllByStockBetween(Integer minimumInventory, Integer maxInventory);
}
